import { http } from '/@/utils/http';
import type {
  HotspotPageParams,
  HotspotPageModel,
  HotspotListParams,
  HotspotListModel,
  Hotspot_topicModel,
  Hotspot_topicListParams,
} from './model/hotspotModel';

export function queryHotspotPage(params: HotspotPageParams) {
  return http.post<HotspotPageModel>({
    url: '/api/app/hotspot/hotspot/page',
    params,
  });
}

export function queryHotspotList(params: HotspotListParams) {
  return http.post<HotspotListModel>({
    url: '/api/app/hotspot/hotspot/list',
    params,
  });
}

export function queryHotspot_topicList(params: Hotspot_topicListParams) {
  return http.post<Hotspot_topicModel>({
    url: '/api/app/hotspot/topic/list',
    params,
  });
}
